home *** CD-ROM | disk | FTP | other *** search
- Path: ix-sea9-23.ix.netcom.com!user
- From: jrashmun@ix.netcom.com (Wendy Ashmun)
- Newsgroups: comp.lang.c++
- Subject: Re: c++ class : describe for a novice
- Date: Tue, 06 Feb 1996 20:59:44 -0800
- Organization: Netcom
- Message-ID: <jrashmun-0602962059440001@ix-sea9-23.ix.netcom.com>
- References: <4f2h0k$l17@unix.sbu.ac.uk>
- NNTP-Posting-Host: ix-sea9-23.ix.netcom.com
- X-NETCOM-Date: Tue Feb 06 8:59:22 PM PST 1996
-
- In article <4f2h0k$l17@unix.sbu.ac.uk>, John Glavey <glavey@vax.sbu.ac.ik>
- wrote:
-
- > Hi,
- >
- > I am currently trying to parse a c++ class and extract its contents
- > and pipe it out to a vrml ( 3d environment ) .
- >
- > My problem being, what constitutes a c++ class.
- >
- > The approach I am taking is properties like
- >
- > inheritance
- > baseclassspecifier etc
- >
- > I am not very familiar with c++ and would appreciate any suggestions,
- > comments, advice.
- >
- > I have a c++ class browser, to start the ball rolling.
- >
- > Thanking in advance.
- >
- > John Glavey
- > South Bank University.
- > London.
-
- Speaking (fairly) strictly, a class is what is defined by a class definition.
- It's a description provided to the C++ compiler by the program developer of
- the way to create, talk to, and destroy a certain kind of object. Are you
- reading C++ source files to parse a class?
- Maybe you're trying to extract the contents of an object and pipe them out.
- Probably the best way to do this is to extend the class definition so that
- you can tell the object to send its contents (in a way that will make sense
- to the vrml. That's a virtual reality m? l?
- If you can't change the class definition, for whatever reasons, perhaps you
- can derive a class from the one you can't change, adding the extraction and
- sending to your new class.
- I hope this helps.
-
- Wendy
- jrashmun@ix.netcom.com
-